﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Primary.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="OTPlus.Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:TextBox ID="txtSearch" runat="server"></asp:TextBox><asp:Button ID="btnSearch" runat="server" Text="Search" onclick="btnSearch_Click" />
<asp:Label runat="server" ID="lblauthtoken"></asp:Label>
<br />
<asp:Label runat="server" ID="lblError"></asp:Label>
<asp:Repeater runat="server" ID="repeaterThreads">
    <ItemTemplate>
    <div style="width:100%;">
        <div style="background-color:#e5e7ee; height:2px;"></div>
        <div style="clear:both"></div>
        <div style="background-color:#e5e7ee; width:100%;font-size:11px; color:#555555; ">
            <div style="padding:2px; background-color:#e5e7ee;">
                <div style="width:20px; float:left; border-right:2px; border-right-style:solid; border-right-color:#E7E4D3; background-color:#e5e7ee; vertical-align:middle; text-align:center;">
            <img src="../Images/Icons/page_text.gif" alt="" />
            </div>
            </div>
            <a href="Thread.aspx?activityid=<%# ((OTPlus.Core.Content.IThreadSummary)Container.DataItem).ActivityID %>">
            <%# ((OTPlus.Core.Content.IThreadSummary)Container.DataItem).Title%></a>
            <br />
            <span style="font-size:9px;">
            <%# ((OTPlus.Core.Content.IThreadSummary)Container.DataItem).ActorName%>
            </span>
            <div title="floatingrightdiv" style="float:right; padding-left:5px;">
            <%# ((OTPlus.Core.Content.IThreadSummary)Container.DataItem).Replies.ToString()%> views
            </div>
            <div title="floatingrightdiv" style="float:right;">
            <%# OTPlus.Core.Content.Format.GetPrettyDate(((OTPlus.Core.Content.IThreadSummary)Container.DataItem).Published)%>
            </div>
        </div>
    </div>
    <div style="clear:both"></div>
    </ItemTemplate>
</asp:Repeater>
</asp:Content>
